<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Obfuscating E-mail Addresses</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="Smarty 3 Manual">
<link rel="up" href="tips.html" title="Chapter 21. Tips &amp; Tricks">
<link rel="prev" href="tips.componentized.templates.html" title="Componentized Templates">
<link rel="next" href="inforesources.html" title="Chapter 22. Resources">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center">Obfuscating E-mail Addresses</th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="tips.componentized.templates.html">Prev</a> </td>
<th width="60%" align="center">Chapter 21. Tips &amp; Tricks</th>
<td width="20%" align="right"> <a accesskey="n" href="inforesources.html">Next</a>
</td>
</tr>
</table>
<hr>
</div>
<div class="sect1" title="Obfuscating E-mail Addresses">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="tips.obfuscating.email"></a>Obfuscating E-mail Addresses</h2></div></div></div>
<p>
    Do you ever wonder how your email address gets on so many spam mailing
    lists? One way spammers collect email addresses is from web pages. To
    help combat this problem, you can make your email address show up in
    scrambled javascript in the HTML source, yet it it will look and work
    correctly in the browser. This is done with the
    <a class="link" href="language.function.mailto.html" title="{mailto}">
    <code class="varname">{mailto}</code></a> plugin.
   </p>
<div class="example">
<a name="id468497"></a><p class="title"><b>Example 21.8. Example of template the Obfuscating an email address</b></p>
<div class="example-contents"><pre class="programlisting">

&lt;div id="contact"&gt;Send inquiries to
{mailto address=$EmailAddress encode='javascript' subject='Hello'}
&lt;/div&gt;

    </pre></div>
</div>
<br class="example-break"><div class="note" title="Technical Note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Technical Note</h3>
<p>
     This method isn't 100% foolproof. A spammer could conceivably program his
     e-mail collector to decode these values, but not likely....
     hopefully..yet ...  wheres that quantum computer :-?.
    </p>
</div>
<p>
    See also
    <a class="link" href="language.modifier.escape.html" title="escape"><code class="varname">escape</code></a>
    modifier and
    <a class="link" href="language.function.mailto.html" title="{mailto}"><code class="varname">{mailto}</code></a>.
   </p>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="tips.componentized.templates.html">Prev</a> </td>
<td width="20%" align="center"><a accesskey="u" href="tips.html">Up</a></td>
<td width="40%" align="right"> <a accesskey="n" href="inforesources.html">Next</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">Componentized Templates </td>
<td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td>
<td width="40%" align="right" valign="top"> Chapter 22. Resources</td>
</tr>
</table>
</div>
</body>
</html>
